export interface Seting {
  id:number
  activeThemeId: string // 选择主题的id
  isDrak: boolean // 是否开启夜间模式
}

export interface Tag {
  key?: number
  url: string
  id: string
  title: string
  parentId: string
  history?: number
  [x:string]: any
}

export interface Favico {
  id?: number
  favicoUrl?: string
}

export interface ThemeBase {
  backImg?: any // 背景图
  fontColor?: string // 字体颜色
  fontCheckColor?: string // 字体选中时的颜色
  blurColor?: string // 玻璃板颜色
  [x:string]:any
}

export interface ITheme {
  id?: number
  light: ThemeBase
  drak: ThemeBase
}

export class THEMEBase implements ThemeBase{
  backImg= '' // 背景图
  fontColor= '' // 字体颜色
  fontCheckColor= '' // 字体选中时的颜色
  blurColor= '' // 玻璃板颜色

  constructor(backImg?: any, fontColor?: string, fontCheckColor?: string, blurColor?: string){
    if(backImg) this.backImg = backImg
    if(fontColor) this.fontColor = fontColor
    if(fontCheckColor) this.fontCheckColor = fontCheckColor
    if(blurColor) this.blurColor = blurColor
  }
}

export class Theme implements ITheme {
  light = new THEMEBase()
  drak = new THEMEBase()
  id?:number
}